package com.comac.print.component.app.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.comac.print.component.app.domain.PrintMasterplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 模板维护表 Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2025-04-16 03:51:14
 */
@Mapper
public interface PrintMasterplateMapper extends BaseMapper<PrintMasterplate> {

    @Select(
            "select " +
                    "* " +
                    "from " +
                    "	print_masterplate m " +
                    "where " +
                    "m.bussiness_id = #{qry.bussinessId}\n" +
                    "\tand m.system_id = #{qry.systemId}\n" +
                    "\tand m.delete_flag = 1 ")
    List<PrintMasterplate> selectDeletedList(@Param("qry") PrintMasterplate printMasterplate);

}
